package by.admonko.universaltesting.services.impl;

import javax.inject.Inject;

import org.springframework.stereotype.Service;

import by.admonko.universaltesting.dataaccess.AnswerResultDao;
import by.admonko.universaltesting.datamodel.AnswerResult;
import by.admonko.universaltesting.services.AnswerResultService;

@Service
public class AnswerResultServiceImpl implements AnswerResultService {
	@Inject
	AnswerResultDao ansResultDao;

	@Override
	public AnswerResult getAnsByID(Integer id) {

		return ansResultDao.getById(id);
	}

	@Override
	public void saveAns(AnswerResult answerResult) {

		ansResultDao.insert(answerResult);

	}

}
